package com.ea.eadp.nexus.test.workflow.pc.login;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

import com.ea.eadp.nexus.test.pageDefinition.Signin_PC;
import com.ea.eadp.nexus.test.workflow.WorkflowElement;
import com.ea.eadp.nexus.test.workflow.WorkflowElementArgument;

public abstract class LoginWorkflowElementBase extends WorkflowElement {
    
    protected Signin_PC page;
    
    public LoginWorkflowElementBase(
        WebDriver driver,
        WorkflowElementArgument args
    ) {
        super(driver, args);
        page = new Signin_PC(driver);
    }
    
    @Override
    public void init() {
        super.init();
        page.navigate();
        page.waitForWebElementPresent( By.id("btnLogin") );
    }
    
}
